@extends('prelist')
@section('left')
@parent
@endsection
@section('right')
<div class="crumb-wrap">
    <div class="crumb-list"><i class="icon-font"></i><a href="index.html">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">分类管理</span></div>
</div>
<div class="search-wrap">
    <div class="search-content">
        <form action="#" method="post">
            <table class="search-tab">
                <tr>
                    <th width="120">选择分类:</th>
                    <td>
                        <select name="search-sort" id="">
                            <option value="class00">全部</option>
                            <option value="class01">运动健身</option>
                            <option value="class02">旅游</option>
                            <option value="class03">文学艺术</option>
                            <option value="class04">演讲</option>
                            <option value="class05">经济</option>
                            <option value="class06">电影</option>
                            <option value="class07">科技</option>
                            <option value="class08">美食</option>
                        </select>
                    </td>
                    <th width="70">关键字:</th>
                    <td><input class="common-text" placeholder="关键字" name="keywords" value="" id="" type="text"></td>
                    <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                </tr>
            </table>
        </form>
    </div>
</div>
<div class="result-wrap">
    <form name="myform" id="myform" method="post">
        <div class="result-content">
            <table class="result-tab" width="100%">
                <tr>
                    <th>礼品编号</th>
                    <th>礼品名称</th>
                    <th>礼品积分</th>
                    <th>操作</th>
                </tr>
                @foreach($pre as $k)
                <tr>
                    <td>{{$k->id}}</td>
                    <td>{{$k->pre_name}}</td>
                    <th>{{$k->jifen}}</th>

                    <td>
                        <a class="link-update" href="{{url('preedit',[$k->id])}}">修改</a>
                        <a class="link-del" href="{{url('predel',[$k->id])}}">删除</a>
                    </td>
                </tr>
                @endforeach
            </table>

            <div class="list-page">
          {!!$pre->render()!!}
            </div>
        </div>
    </form>
</div>
@endsection
